package vip.xiaonuo.client.modular.wxpay.service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 微信支付服务接口
 *
 * @author SNOWY_TEAM
 */
public interface MyWxPayService {


    /**
     * 请求单次分账
     *
     * @param orderId 订单ID
     * @param receivers 分账接收方列表
     * @return 分账结果
     */
    Map<String, Object> profitSharing(String orderId, String fzOrderId, List<Map<String, Object>> receivers);

    /**
     * 查询分账结果
     *
     * @param orderId 订单ID
     * @param outOrderNo 分账单号
     * @return 分账结果
     */
    Map<String, Object> queryProfitSharingResult(String orderId, String outOrderNo);

    /**
     * 完结分账
     *
     * @param orderId 订单ID
     * @return 完结分账结果
     */
    Map<String, Object> finishProfitSharing(String orderId);

    void updateOrderStatusToCompleted();

    public boolean addProfitSharingReceiver(String openId, String relationType);
}
